package com.ruoyi.project.ins.service.impl;

import com.ruoyi.project.ins.domain.InsPrimaryAccount;
import com.ruoyi.project.ins.service.IInsPrimaryAccountService;
import com.ruoyi.project.mapper.InsPrimaryAccountMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class InsPrimaryAccountImpl implements IInsPrimaryAccountService {
    @Autowired
    private InsPrimaryAccountMapper insPrimaryAccountMapper;

    @Override
    public List<InsPrimaryAccount> selectInsPrimaryAccountList(InsPrimaryAccount insPrimaryAccount) {
        return insPrimaryAccountMapper.selectInsPrimaryAccountList(insPrimaryAccount);
    }

    @Override
    public int insertInsPrimaryAccount(InsPrimaryAccount insPrimaryAccount) {
        return insPrimaryAccountMapper.insertInsPrimaryAccount(insPrimaryAccount);
    }

    @Override
    public int updateInsPrimaryAccount(InsPrimaryAccount insPrimaryAccount) {
        return insPrimaryAccountMapper.updateInsPrimaryAccount(insPrimaryAccount);
    }

    @Override
    public InsPrimaryAccount selectInsPrimaryAccountById(Long id) {
        return insPrimaryAccountMapper.selectInsPrimaryAccountById(id);
    }
}
